package com.medvalley.tcm.dao;

import com.medvalley.tcm.domain.UserInfo;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.CrudRepository;

public interface UserInfoDao extends CrudRepository<UserInfo, Long>, JpaSpecificationExecutor<UserInfo> {

    UserInfo findOneByPhone(String phone);

    UserInfo findOneById(long id);

    UserInfo findOneByPhoneAndPassword(String phone, String password);

}
